﻿using Application.DTO;
using Application.DTO.Dictionary;
using Domain.Entity.Dictionary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.IService.Dictionary
{
    public interface IDictionaryKeyService:IBaseService<DictionaryKey>
    {
        /// <summary>
        /// 添加字典集
        /// </summary>
        /// <param name="dto">字典集</param>
        /// <returns></returns>
        public Task<ResultDTO<string>> InsertDictionaryList(DictionaryListFormDTO dto);
        /// <summary>
        /// 修改字典集
        /// </summary>
        /// <param name="dto">字典集</param>
        /// <returns></returns>
        public Task<ResultDTO<string>> UpdateDictionaryList(DictionaryListFormDTO dto);
        /// <summary>
        /// 删除字典集，采用逻辑删除
        /// </summary>
        /// <param name="ids">字典键ID集合</param>
        /// <returns></returns>
        public Task<ResultDTO<string>> SoftDeleteDictionaryList(string ids);
        /// <summary>
        /// 查询字典键集合
        /// </summary>
        /// <returns></returns>
        public Task<ResultDTO<List<DictionaryKeyShowDTO>>> SearchDictionaryKeys();
    }
}
